import React from 'react';
import { TableC, FirstHeaderC, SecondHeaderC, PrimaryC } from '../../comps';
import moment from 'moment';
import html2canvas from 'html2canvas';
import jsPDF from '../../utils/thirdPackage/jspdf';

class PdfImport extends React.Component {
  constructor(props) {
    super(props);

    this.gap = 16; // 元素间隔(HTML)
    this.HTMLWidth = 1301; // HTML页面宽度(HTML)，对应的高度为920

    // 纸张横向打印
    this.pdfWidth = 841.89; // PDF纸张的宽度(PDF)
    this.pdfHeight = 595.28; // PDF纸张高度(PDF)
    this.pdfLeftRightGap = 20; // 在PDF中左右留的边距(PDF)
    this.pdfTopGap = 20; // 在pdf上面预留的高度
    this.pdfBottomGap = 26; // 在pdf下面预留的高度（后期添加页码）

    // 需要导出的元素name
    this.drawingItemName = 'pdf';

    // 表格头部图片
    this.headerImgData = undefined;
  }

  componentDidMount() {
    // 创建空白头元素，可添加到PDF中的对象（每页头部空白）
    this.headerBlankImgData = this.blankImgData(this.pdfTopGap);
  }

  // 生成空白canvas元素
  blankImgData = (height) => {
    // 创建空白元素，可添加到PDF中的对象
    const blankCanvas = document.createElement('canvas');
    blankCanvas.width = this.pdfWidth;
    blankCanvas.height = height;
    blankCanvas.style.backgroundColor = 'white';
    var ctx = blankCanvas.getContext('2d');
    ctx.fillStyle = 'white';
    ctx.fillRect(0, 0, this.pdfWidth, height);
    let blankImgData = blankCanvas.toDataURL('image/jpeg', 1);
    return blankImgData;
  };

  /** 生成table header canvas元素，因图片加载是异步操作，股该函数返回promise，外层调用可用await来改为同步
   *  img：含有表头的图片
   *  tableHeaderHeight: 表头高度（在HTML中）
   *  yPosi: 表头在img图片的纵向位置（在HTML中
   */
  tableHeaderImgData = (img, tableHeaderHeight, yPosi) => {
    return new Promise((resolve) => {
      // 创建空白元素，可添加到PDF中的对象
      const headerCanvas = document.createElement('canvas');
      headerCanvas.width = this.HTMLWidth; // canvas宽度
      headerCanvas.height = tableHeaderHeight; // canvas高度
      headerCanvas.style.backgroundColor = 'white';
      let ctx = headerCanvas.getContext('2d');

      // 新建图片，数据源为html转canvas生成的图片数据
      let image = new Image();
      image.src = img;
      // 图片的加载是一个异步过程
      image.onload = () => {
        /** canvas截取指定位置和高度的一段图片
         *  必须将img数据转成image图片后才可以执行drawImage，否则会报错
         *  参数为： drawImage(img,sx,sy,swidth,sheight,x,y,width,height);
         *     img：规定要使用的图像、画布或视频
         *     sx：可选。开始剪切的 x 坐标位置
         *     sy：可选。开始剪切的 y 坐标位置。
         *     swidth：可选。被剪切图像的宽度
         *     sheight：可选。被剪切图像的高度
         *     x：在画布上放置图像的 x 坐标位置
         *     y：在画布上放置图像的 y 坐标位置
         *     width：可选。要使用的图像的宽度。（伸展或缩小图像）
         *     height：可选。要使用的图像的高度。（伸展或缩小图像）
         */
        ctx.drawImage(
          image, // 规定要使用的图像、画布或视频
          0, // 开始剪切的 x 坐标位置
          yPosi * 2, // 开始剪切的 y 坐标位置，因在执行html2canvas时，设置的scale为2，故图片放大了两倍
          this.HTMLWidth * 2, // 被剪切图像的宽度，因在执行html2canvas时，设置的scale为2，故图片放大了两倍
          tableHeaderHeight * 2, // 被剪切图像的高度，因在执行html2canvas时，设置的scale为2，故图片放大了两倍
          0, // 在画布上放置图像的 x 坐标位置
          0, // 在画布上放置图像的 y 坐标位置
          this.HTMLWidth, // 要使用的图像的宽度。（伸展或缩小图像）
          tableHeaderHeight, // 要使用的图像的高度。（伸展或缩小图像）
        );
        let headerImgData = headerCanvas.toDataURL('image/jpeg', 1);
        resolve(headerImgData);
      };
    });
  };

  // 生成页码元素
  pageImgData = (page) => {
    // 创建页码元素，添加到每页末尾
    const pageCanvas = document.createElement('canvas');
    let width = this.HTMLWidth;
    let height = (this.HTMLWidth * this.pdfBottomGap) / (this.pdfWidth - this.pdfLeftRightGap * 2);
    pageCanvas.width = width;
    pageCanvas.height = height;
    var ctx = pageCanvas.getContext('2d');
    ctx.fillStyle = 'white';
    ctx.fillRect(0, 0, width, height);

    // 画一条线
    ctx.moveTo(0, 0);
    ctx.lineTo(this.HTMLWidth, 0);
    ctx.strokeStyle = '#DDDDDD';
    ctx.stroke();

    // 写上页码
    ctx.fillStyle = '#333333';
    ctx.font = '14px sans-serif';
    ctx.fillText(page > 9 ? page : `0${page}`, this.HTMLWidth - 25, 20);

    let pageImgData = pageCanvas.toDataURL('image/jpeg', 1);
    return pageImgData;
  };

  // 导出
  onClick = () => {
    // 加延时操作是为了loading正常展示
    setTimeout(() => {
      html2canvas(document.getElementById('drawingBoard'), {
        scale: 2,
        timeout: 1000,
      }).then(async (canvas) => {
        // 可添加到PDF中的对象 （当前需要转为PDF的全部动态元素）
        const imgData = canvas.toDataURL('image/jpeg', 1);

        // 横向打印，A4纸张大小
        const pdfObj = new jsPDF('landscape', 'pt', 'a4'); // PDF对象
        const pdfInnerWidth = this.pdfWidth - this.pdfLeftRightGap * 2; // PDF内部去掉边距内部实际可使用的宽度
        const pdfInnerHeight = this.pdfHeight - this.pdfTopGap - this.pdfBottomGap; // PDF内部去掉编辑内部实际可使用的高度
        const gapInPDFH = (this.gap * pdfInnerWidth) / this.HTMLWidth; // 元素之间的空隙在PDF中的高度
        const currentHTMLWidth = canvas.width; // 当前需要转换为PDF的元素的宽度 （HTML宽度）
        const currentHTMLHeight = canvas.height; // 当前需要转换的PDF的元素的高度（HTML的高度）
        const currentPdfHeight = (pdfInnerWidth * currentHTMLHeight) / currentHTMLWidth; // 当前需要转换为PDF的元素在PDF中高度
        const elements = document.getElementsByName(this.drawingItemName); // 需要导出的元素
        const boardYPosi = document.getElementById('drawingBoard').offsetTop; // 画板距离页面最上方的距离(用于计算表头在html中的位置)

        let nextIndex = 0; // 下一页PDF起始的元素序号
        let indexing = -1; // 标记正在执行第几个元素
        let htmlInPDFHeight = 0; // 已经在PDF上的元素的高度
        let currentPage = 1; // 记录当前正在处理pdf的第几页
        let finish = false; // 记录是否完成分析，可以执行导出了

        // 以下变量与表格换页相关
        let pdfTableHeader = 0; // 记录需要换页的表头的高度（在pdf中，根据每一次循环会有所变化）
        let headerHight = 0; // 记录需要换页的表头的高度（在html当中）
        let trIndex = 0; // 记录需要换页的表格已经处理过多少行了（根据每一次循环会有所变化）
        let tableRow = undefined; // 记录需要换页的表格行信息（根据每一次循环会有所变化）
        let continueTable = false; // 标记下轮循环是不是以未完成的表格开始
        let headerPosiInImg = 0; // 记录需要换页的表头在图片当中的位置，便于canvas截取表头，换页时贴在头部(在html当中)
        let needHeader = false; // 标记需要换页的表格后面还有别的内容，在将最后一页表格和后面的内容汇整成一页pdf后，同样需要在表格上添加表头
        let preTableHeadInfo = null; // 当上一个分页的表格的最后一页还未添加到pdf，同页又出现了需要换页的表格，那么以上换页的字段会记录最新这一次的表头信息，这个时候，该对象中存储上一个分页信息，当页处理完后，继续设置为null
        let tableHeaderImage = null; // 生成的需要换页的表头图片

        while (finish == false) {
          // 若该变量中记录这前一个分页的信息，那个分页内容已经打印到PDF，新一轮循环不再需要，清除
          preTableHeadInfo = null;

          // 刚开始时，累计到pdf的元素的高度是0，如果不是第一页，则添加一页PDF
          if (htmlInPDFHeight != 0) {
            pdfObj.addPage();
            currentPage++;
          }

          let height = 0; // 搜集当前一页元素的累计高度（PDF的高度，若有表格换页，该变量中包含额外添加的表头的高度，但实际上额外添加的表头高度不属于已经累计到pdf上的元素的高度）
          let realPdfHeight = 0; // 搜集当前一页元素的累计高度（PDF的高度，不包含表格换页后，接下来页中虚拟表头的高度）

          // 若上一页，有需要换页的表格，则本页，先把表头加上
          if (continueTable == true) {
            height += pdfTableHeader; // 累计虚拟表头的高度

            let pdfRowsHeight = 0; // 当前累计行高
            // 从上一次未处理的第一行开始遍历
            for (let j = trIndex; j < tableRow.length; j++) {
              let pdfOneRow = (tableRow[j].clientHeight * pdfInnerWidth) / this.HTMLWidth;
              // 当添加了一行超过pdf高度了，则记录下一页要开始的行号
              if (pdfRowsHeight + pdfOneRow > pdfInnerHeight - pdfTableHeader) {
                break; // 此处是中断当前for循环
              }
              pdfRowsHeight += pdfOneRow; // 当前累计行高加上当前行的行高
              height += pdfOneRow; // 累计当前页已将添加到pdf上的高度
              realPdfHeight += pdfOneRow;
              trIndex++;
            }

            // 若当前页还是不能满足表格的高度，则继续
            if (trIndex < tableRow.length) {
              continueTable = true; // 标记下一页开始，就处理未完成的表格
            } else {
              // 若当前页已经处理完了上页遗留的表格
              continueTable = false; // 标记下轮循环不是以未完成的表格开始

              if (indexing != elements.length - 1) {
                // 若遗留的表格不是要转PDF的最后一个元素，则标记后续处理中，需为表格添加表头
                needHeader = true;
              } else {
                // 否则清空表头图片
                tableHeaderImage = null;
              }
            }
          }

          let i;
          if (continueTable == false) {
            // 针对每一个元素，逐个遍历，从上一页未处理的第一个元素开始遍历
            for (i = nextIndex; i < elements.length; i++) {
              indexing++; // 标记当前正在执行第几个元素

              // 若不是当前页的第一个元素，则累积高度添加间隔
              // 若刚处理完遗留的表格，继续执行下一个元素，中间不存在换页，那么也需要在表格的最后与当前元素之间添加间隙
              if (i != nextIndex || needHeader == true) {
                height += gapInPDFH;
                realPdfHeight += gapInPDFH;
              }

              // 计算当前元素在pdf中占的高度
              let pdfCurrentItemHeight = (elements[i].clientHeight * pdfInnerWidth) / this.HTMLWidth;

              // 若累计当前元素后，大于了内容区的高度（证明当前元素不能完全放入该页）
              if (height + pdfCurrentItemHeight > pdfInnerHeight) {
                // 如果是表格，则处理表格的分页问题
                if (elements[i].getAttribute('istable') == 'true') {
                  // 当上一个表格元素的换页行为还没执行完，当页又来了一个需要换页的表格时，把原表头信息记录到preTableHeadInfo
                  if (needHeader) {
                    preTableHeadInfo = {
                      pdfTableHeader: pdfTableHeader, // 记录需要换页的表头的高度
                      trIndex: trIndex, // 记录需要换页的表格已经处理过多少行了
                      tableRow: tableRow, // 记录需要换页的表格行信息
                      headerHight: headerHight, // 记录需要换页的表头的高度（在html当中）
                      headerPosiInImg: headerPosiInImg, // 记录需要换页的表头在图片当中的位置
                      tableHeaderImage: tableHeaderImage, // 记录需要换页的表头图片
                    };
                    // 初始化数据，当前页中，另一个需要换页的表格，应该从第0行开始
                    trIndex = 0;
                    // 初始化表头图片
                    tableHeaderImage = null;
                  }

                  let tableHeader = elements[i].getElementsByTagName('thead')[0];
                  headerHight = tableHeader.clientHeight; // 记录需要换页的表头的高度（在html当中）
                  headerPosiInImg = elements[i].offsetTop - boardYPosi; // 记录需要换页的表头在图片当中的位置

                  // 计算表头高度
                  pdfTableHeader = (tableHeader.clientHeight * pdfInnerWidth) / this.HTMLWidth;

                  // 逐行计算body区域与剩余区域高度的比较，获取当前页可以放多少行
                  let tableBody = elements[i].getElementsByTagName('tbody')[0];
                  tableRow = tableBody.getElementsByTagName('tr');

                  // 表头的高度+第一行的高度如果小于剩余区域，那就执行表格分页
                  // 默认表格至少一行数据，如果一行都没有，则不展示
                  if (pdfTableHeader + (tableRow[0].clientHeight * pdfInnerWidth) / this.HTMLWidth + height <= pdfInnerHeight) {
                    height += pdfTableHeader;
                    realPdfHeight += pdfTableHeader; // 此时是真实的表头，不是虚拟表头

                    // 计算剩余区域高度
                    let pdfLastHeight = pdfInnerHeight - height;

                    let pdfRowsHeight = 0; // 当前累计行高
                    for (let j = trIndex; j < tableRow.length; j++) {
                      let pdfOneRow = (tableRow[j].clientHeight * pdfInnerWidth) / this.HTMLWidth;
                      // 当添加了一行超过pdf高度了，则记录下一页要开始的行号
                      if (pdfRowsHeight + pdfOneRow > pdfLastHeight) {
                        trIndex = j;
                        break; // 此处是中断当前for循环
                      }
                      pdfRowsHeight += pdfOneRow; // 当前累积行高加上当前行的行高
                      height += pdfOneRow;
                      realPdfHeight += pdfOneRow;
                    }

                    // 标记下一页开始，就处理未完成的表格
                    continueTable = true;
                    nextIndex = i + 1; // 记录表格处理完后，下一个要处理的元素的序号
                    break; // 此处是中断当前for循环
                  } else {
                    nextIndex = i; // 记录下一轮开始的元素
                    indexing--; // 若当前遍历的元素高度超过了空白区，则本页不再处理该元素
                    break;
                  }
                } else {
                  // 若不是表格，则跳出本次for循环，执行下一轮while（另起一页）
                  nextIndex = i; // 记录下一轮开始的元素
                  indexing--; // 若当前遍历的元素高度超过了空白区，则本页不再处理该元素
                  break;
                }
              } else {
                // 若空白区域足够放当前元素
                height += pdfCurrentItemHeight;
                realPdfHeight += pdfCurrentItemHeight;
              }
            }
          }

          /**------ 在换页之前（一次while结尾）添加一页PDF---------- */

          // 叠加元素(height != realPdfHeight时，意味上叠加了表头,PDF的位置应该向下移动一个表头的位置)
          if (height != realPdfHeight) {
            if (needHeader && preTableHeadInfo != null) {
              // 用上一轮未删pdf的表头
              pdfObj.addImage(imgData, 'JPEG', this.pdfLeftRightGap, this.pdfTopGap - htmlInPDFHeight + preTableHeadInfo.pdfTableHeader, pdfInnerWidth, currentPdfHeight);
            } else {
              pdfObj.addImage(imgData, 'JPEG', this.pdfLeftRightGap, this.pdfTopGap - htmlInPDFHeight + pdfTableHeader, pdfInnerWidth, currentPdfHeight);
            }
          } else {
            pdfObj.addImage(imgData, 'JPEG', this.pdfLeftRightGap, this.pdfTopGap - htmlInPDFHeight, pdfInnerWidth, currentPdfHeight);
          }

          // 叠加表头(height != realPdfHeight时，意味上叠加了表头)
          if (height != realPdfHeight) {
            if (needHeader && preTableHeadInfo != null) {
              // 用上一轮未删pdf的表头
              if (preTableHeadInfo.tableHeaderImage == null || preTableHeadInfo.tableHeaderImage == undefined) {
                preTableHeadInfo.tableHeaderImage = await this.tableHeaderImgData(imgData, preTableHeadInfo.headerHight, preTableHeadInfo.headerPosiInImg);
              }

              needHeader = false;
              pdfObj.addImage(preTableHeadInfo.tableHeaderImage, 'JPEG', this.pdfLeftRightGap, this.pdfTopGap, pdfInnerWidth, preTableHeadInfo.pdfTableHeader);
              preTableHeadInfo = null;
            } else {
              if (tableHeaderImage == null) {
                tableHeaderImage = await this.tableHeaderImgData(imgData, headerHight, headerPosiInImg);
              }
              pdfObj.addImage(tableHeaderImage, 'JPEG', this.pdfLeftRightGap, this.pdfTopGap, pdfInnerWidth, pdfTableHeader);
            }
          }

          // 叠加头部空白
          pdfObj.addImage(this.headerBlankImgData, 'JPEG', this.pdfLeftRightGap, 0, pdfInnerWidth, this.pdfTopGap);

          // 叠加尾部空白
          const endBlankImgData = this.blankImgData(pdfInnerHeight - height + this.pdfBottomGap);
          pdfObj.addImage(endBlankImgData, 'JPEG', this.pdfLeftRightGap, this.pdfTopGap + height, pdfInnerWidth, pdfInnerHeight - height + this.pdfBottomGap);

          // 叠加页码
          const pageImgData = this.pageImgData(currentPage);
          pdfObj.addImage(pageImgData, 'JPEG', this.pdfLeftRightGap, this.pdfHeight - this.pdfBottomGap, pdfInnerWidth, this.pdfBottomGap);

          // 记录已经复制到pdf上的元素的pdf高度
          htmlInPDFHeight += realPdfHeight;

          // 最后一个元素，且没有未处理完的表格，则退出循环
          if (i == elements.length && continueTable == false) {
            finish = true;
          }
        }

        // 另存为PDF
        pdfObj.save(`现金管理理财新规报告-${moment().format('YYYY-MM-DD')}.pdf`);
      });
    }, 1000);
  };

  render() {
    const columns = [
      { dataIndex: 'id', title: 'key', key: 'id' },
      { dataIndex: 'issuer', title: '原始权益人', key: 'issuer' },
      { dataIndex: 'portfolioWeightcoefficient', title: '组合权重', key: 'portfolioWeightcoefficient', type: 'rate' },
      { dataIndex: 'tradingcode', title: '证券代码', key: 'tradingcode' },
      { dataIndex: 'secuabbr', title: '证券简称', key: 'secuabbr' },
      { dataIndex: 'amount', title: '持仓数量', key: 'amount', type: 'number' },
      { dataIndex: 'netvaluation', title: '估值净价', key: 'netvaluation', type: 'number' },
      { dataIndex: 'totalvaluation', title: '估值全价', key: 'totalvaluation', type: 'number' },
      { dataIndex: 'marketvalue', title: '市值（全价）', key: 'marketvalue', type: 'number' },
      { dataIndex: 'weightcoefficient', title: '权重', key: 'weightcoefficient', type: 'rate' },
    ];
    const columns1 = [
      { dataIndex: 'id', title: 'key', key: 'id' },
      { dataIndex: 'issuer', title: '原始权益人', key: 'issuer' },
      { dataIndex: 'portfolioWeightcoefficient', title: '组合权重', key: 'portfolioWeightcoefficient', type: 'rate' },
      { dataIndex: 'tradingcode', title: '证券代码', key: 'tradingcode' },
      { dataIndex: 'secuabbr', title: '证券简称', key: 'secuabbr' },
      { dataIndex: 'amount', title: '持仓数量', key: 'amount', type: 'number' },
      { dataIndex: 'netvaluation', title: '估值净价', key: 'netvaluation', type: 'number' },
      { dataIndex: 'totalvaluation', title: '估值全价', key: 'totalvaluation', type: 'number' },
      { dataIndex: 'marketvalue', title: '市值（全价）', key: 'marketvalue', type: 'number' },
      { dataIndex: 'weightcoefficient', title: 'xx', key: 'weightcoefficient', type: 'rate' },
    ];
    const data = [
      {
        id: 0,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 1,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 2,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 3,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 4,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 5,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 6,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 7,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 8,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 9,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 10,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 11,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 12,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 13,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 14,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 15,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 16,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 17,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 18,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 19,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 20,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 21,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 22,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 23,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 24,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 25,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 26,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 27,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 28,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 29,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 30,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 31,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 32,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 33,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 34,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 35,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 36,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 37,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 38,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 39,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 40,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 41,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 42,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 43,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 44,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 45,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 46,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 47,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 48,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 49,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 50,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 51,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 52,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 53,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 54,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 55,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 56,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 57,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 58,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 59,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 60,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 61,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 62,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 63,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 64,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 65,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 66,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 67,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 68,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 69,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 70,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 71,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 72,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 73,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
      {
        id: 74,
        issuer: '兴业证券股份有限公司',
        portfolioWeightcoefficient: 0.0957,
        tradingcode: '145044',
        secuabbr: '16兴业03',
        amount: 1000000.0,
        netvaluation: 100.14,
        totalvaluation: 102.38,
        marketvalue: 102395473.61,
        weightcoefficient: 0.0597,
      },
    ];
    const data5 = data.slice(0, 5);
    const data10 = data.slice(0, 10);
    const data33 = data.slice(0, 33);
    const data15 = data.slice(0, 15);
    const column1 = [
      { dataIndex: 'index', title: 'key', key: 'index', width: 50 },
      { dataIndex: 'tradingcode', title: '证券代码', key: 'tradingcode' },
      { dataIndex: 'secuabbr', title: '证券简称', key: 'secuabbr' },
      { dataIndex: 'type', title: '资产类型', key: 'type' },
      { dataIndex: 'subtype', title: '子类', key: 'subtype' },
      { dataIndex: 'currentamount', title: '持仓数量', key: 'currentamount' },
      { dataIndex: 'rate', title: '利率(买入收益率)', key: 'rate' },
      { dataIndex: 'netvaluation', title: '估值净价', key: 'netvaluation' },
      { dataIndex: 'totalvaluation', title: '估值全价', key: 'totalvaluation' },
      { dataIndex: 'marketvalue', title: '市值（全价）', key: 'marketvalue' },
      { dataIndex: 'issuer', title: '发行人/存款行', key: 'issuer' },
      { dataIndex: 'counterparty', title: '交易对手', key: 'counterparty' },
      { dataIndex: 'subjectrating', title: '主体评级', key: 'subjectrating' },
      { dataIndex: 'bondrating', title: '债项评级', key: 'bondrating' },
      { dataIndex: 'duedate', title: '到期日', key: 'duedate' },
      { dataIndex: 'exercisedate', title: '下一个行权日', key: 'exercisedate' },
      { dataIndex: 'residualday', title: '剩余期限', key: 'residualday' },
      { dataIndex: 'remainingday', title: '剩余存续期', key: 'remainingday' },
      { dataIndex: 'weightcoefficient', title: '权重', key: 'weightcoefficient' },
    ];
    const data1 = [
      {
        id: 4740,
        tradingcode: '145044',
        exchangecode: '101',
        secuabbr: '16兴业03',
        type: '0',
        subtype: '证券公司债',
        currentamount: '1000000.0',
        rate: '3.00%',
        netvaluation: '100.1371',
        totalvaluation: '102.3776',
        marketvalue: '102395473.6100',
        issuer: '兴业证券股份有限公司',
        counterparty: '--',
        subjectrating: 'AAA',
        bondrating: 'AA+',
        duedate: '20211020',
        exercisedate: null,
        residualday: '129',
        remainingday: '129',
        weightcoefficient: '5.97%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4741,
        tradingcode: '135620',
        exchangecode: '101',
        secuabbr: '16武经02',
        type: '0',
        subtype: '私募债',
        currentamount: '200000.0',
        rate: null,
        netvaluation: '100.1765',
        totalvaluation: '105.2244',
        marketvalue: '21042474.5900',
        issuer: '江苏武进经济发展集团有限公司',
        counterparty: '--',
        subjectrating: 'AA+',
        bondrating: 'AA+',
        duedate: '20210712',
        exercisedate: '',
        residualday: '29',
        remainingday: '29',
        weightcoefficient: '1.23%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4742,
        tradingcode: '170404',
        exchangecode: '113',
        secuabbr: '17农发04',
        type: '0',
        subtype: '政策银行债',
        currentamount: '2200000.0',
        rate: null,
        netvaluation: '101.7905',
        totalvaluation: '103.4380',
        marketvalue: '228480384.8100',
        issuer: '中国农业发展银行',
        counterparty: '--',
        subjectrating: 'AAA',
        bondrating: 'AAA',
        duedate: '20240106',
        exercisedate: null,
        residualday: '937',
        remainingday: '937',
        weightcoefficient: '13.32%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4743,
        tradingcode: '145821',
        exchangecode: '101',
        secuabbr: '17宁高新',
        type: '0',
        subtype: '私募债',
        currentamount: '500000.0',
        rate: '3.26%',
        netvaluation: '102.8306',
        totalvaluation: '106.7666',
        marketvalue: '53416144.8000',
        issuer: '南京江北新区产业投资集团有限公司',
        counterparty: '--',
        subjectrating: 'AAA',
        bondrating: 'AAA',
        duedate: '20220928',
        exercisedate: '20220927',
        residualday: '471',
        remainingday: '472',
        weightcoefficient: '3.11%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4744,
        tradingcode: '145870',
        exchangecode: '101',
        secuabbr: '17常经01',
        type: '0',
        subtype: '私募债',
        currentamount: '400000.0',
        rate: '3.61%',
        netvaluation: '102.6312',
        totalvaluation: '106.0970',
        marketvalue: '42375619.1300',
        issuer: '常熟市城市经营投资有限公司',
        counterparty: '--',
        subjectrating: 'AA+',
        bondrating: 'AA+',
        duedate: '20221025',
        exercisedate: null,
        residualday: '499',
        remainingday: '499',
        weightcoefficient: '2.47%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4745,
        tradingcode: '180413',
        exchangecode: '113',
        secuabbr: '18农发13',
        type: '0',
        subtype: '政策银行债',
        currentamount: '300000.0',
        rate: null,
        netvaluation: '101.1936',
        totalvaluation: '103.1679',
        marketvalue: '31049206.0500',
        issuer: '中国农业发展银行',
        counterparty: '--',
        subjectrating: 'AAA',
        bondrating: 'AAA',
        duedate: '20231121',
        exercisedate: null,
        residualday: '891',
        remainingday: '891',
        weightcoefficient: '1.81%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4746,
        tradingcode: '101800968',
        exchangecode: '113',
        secuabbr: '18太仓城投MTN001',
        type: '0',
        subtype: '一般中期票据',
        currentamount: '130000.0',
        rate: null,
        netvaluation: '104.0191',
        totalvaluation: '108.2641',
        marketvalue: '14162435.4000',
        issuer: '太仓市城市建设投资集团有限公司',
        counterparty: '--',
        subjectrating: 'AA+',
        bondrating: 'AA+',
        duedate: '20230828',
        exercisedate: null,
        residualday: '806',
        remainingday: '806',
        weightcoefficient: '0.83%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4747,
        tradingcode: '101800349',
        exchangecode: '113',
        secuabbr: '18张家公资MTN001',
        type: '0',
        subtype: '一般中期票据',
        currentamount: '600000.0',
        rate: null,
        netvaluation: '104.2889',
        totalvaluation: '105.3854',
        marketvalue: '63368438.9300',
        issuer: '张家港市直属公有资产经营有限公司',
        counterparty: '--',
        subjectrating: 'AA+',
        bondrating: 'AA+',
        duedate: '20230404',
        exercisedate: null,
        residualday: '660',
        remainingday: '660',
        weightcoefficient: '3.69%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4748,
        tradingcode: '1821041',
        exchangecode: '113',
        secuabbr: '18江南农商二级01',
        type: '0',
        subtype: '商业银行次级债券',
        currentamount: '500000.0',
        rate: null,
        netvaluation: '102.7322',
        totalvaluation: '105.6247',
        marketvalue: '53154620.0700',
        issuer: '江苏江南农村商业银行股份有限公司',
        counterparty: '--',
        subjectrating: 'AAA',
        bondrating: 'AA+',
        duedate: '20281119',
        exercisedate: '20231115',
        residualday: '885',
        remainingday: '2716',
        weightcoefficient: '3.10%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4749,
        tradingcode: '143761',
        exchangecode: '101',
        secuabbr: '18电投04',
        type: '0',
        subtype: '一般公司债',
        currentamount: '700000.0',
        rate: null,
        netvaluation: '100.3080',
        totalvaluation: '103.8360',
        marketvalue: '72633545.5000',
        issuer: '国家电力投资集团有限公司',
        counterparty: '--',
        subjectrating: 'AAA',
        bondrating: 'AAA',
        duedate: '20210822',
        exercisedate: null,
        residualday: '70',
        remainingday: '70',
        weightcoefficient: '4.23%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4750,
        tradingcode: '114348',
        exchangecode: '105',
        secuabbr: '18远东三',
        type: '0',
        subtype: '私募债',
        currentamount: '500000.0',
        rate: null,
        netvaluation: '100.2061',
        totalvaluation: '105.7686',
        marketvalue: '52933523.8700',
        issuer: '远东国际融资租赁有限公司',
        counterparty: '--',
        subjectrating: 'AAA',
        bondrating: 'AAA',
        duedate: '20210719',
        exercisedate: null,
        residualday: '36',
        remainingday: '36',
        weightcoefficient: '3.09%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4751,
        tradingcode: '151616',
        exchangecode: '101',
        secuabbr: '19中证C2',
        type: '0',
        subtype: '证券公司债',
        currentamount: '200000.0',
        rate: '3.07%',
        netvaluation: '100.9067',
        totalvaluation: '101.0078',
        marketvalue: '20217031.1600',
        issuer: '中信证券股份有限公司',
        counterparty: '--',
        subjectrating: 'AAA',
        bondrating: 'AAA',
        duedate: '20220603',
        exercisedate: null,
        residualday: '355',
        remainingday: '355',
        weightcoefficient: '1.18%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4752,
        tradingcode: '1980024',
        exchangecode: '113',
        secuabbr: '19吴江01',
        type: '0',
        subtype: '一般企业债',
        currentamount: '240000.0',
        rate: null,
        netvaluation: '104.9057',
        totalvaluation: '106.9240',
        marketvalue: '25381565.8900',
        issuer: '苏州市吴江城市投资发展集团有限公司',
        counterparty: '--',
        subjectrating: 'AA+',
        bondrating: 'AA+',
        duedate: '20290124',
        exercisedate: null,
        residualday: '2782',
        remainingday: '2782',
        weightcoefficient: '1.48%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4753,
        tradingcode: '190203',
        exchangecode: '113',
        secuabbr: '19国开03',
        type: '0',
        subtype: '政策银行债',
        currentamount: '2200000.0',
        rate: null,
        netvaluation: '100.5390',
        totalvaluation: '101.7234',
        marketvalue: '224908978.6100',
        issuer: '国家开发银行',
        counterparty: '--',
        subjectrating: 'AAA',
        bondrating: 'AAA',
        duedate: '20240201',
        exercisedate: null,
        residualday: '963',
        remainingday: '963',
        weightcoefficient: '13.11%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4754,
        tradingcode: '1928031',
        exchangecode: '113',
        secuabbr: '19广发银行永续债',
        type: '0',
        subtype: '商业银行次级债券',
        currentamount: '1000000.0',
        rate: '5.95%',
        netvaluation: '101.9875',
        totalvaluation: '105.1683',
        marketvalue: '104187261.5700',
        issuer: '广发银行股份有限公司',
        counterparty: '--',
        subjectrating: 'AAA',
        bondrating: 'AAA',
        duedate: '20240927',
        exercisedate: '20240925',
        residualday: '1200',
        remainingday: '1202',
        weightcoefficient: '6.07%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4755,
        tradingcode: '1920076',
        exchangecode: '113',
        secuabbr: '19徽商银行永续债',
        type: '0',
        subtype: '商业银行次级债券',
        currentamount: '1000000.0',
        rate: '6.41%',
        netvaluation: '101.2693',
        totalvaluation: '103.8334',
        marketvalue: '102880866.7900',
        issuer: '徽商银行股份有限公司',
        counterparty: '--',
        subjectrating: 'AAA',
        bondrating: 'AAA',
        duedate: '20241203',
        exercisedate: '20241129',
        residualday: '1265',
        remainingday: '1269',
        weightcoefficient: '6.00%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4756,
        tradingcode: '151714',
        exchangecode: '101',
        secuabbr: '19恒澄01',
        type: '0',
        subtype: '私募债',
        currentamount: '750000.0',
        rate: null,
        netvaluation: '101.5965',
        totalvaluation: '106.8829',
        marketvalue: '79396713.8900',
        issuer: '苏州市恒澄建设发展有限公司',
        counterparty: '--',
        subjectrating: 'AA',
        bondrating: 'AA',
        duedate: '20240621',
        exercisedate: '20220621',
        residualday: '373',
        remainingday: '1104',
        weightcoefficient: '4.63%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4757,
        tradingcode: '101900410',
        exchangecode: '113',
        secuabbr: '19汾湖投资MTN001',
        type: '0',
        subtype: '一般中期票据',
        currentamount: '160000.0',
        rate: null,
        netvaluation: '101.3133',
        totalvaluation: '102.3955',
        marketvalue: '16315619.5100',
        issuer: '苏州汾湖投资集团有限公司',
        counterparty: '--',
        subjectrating: 'AA',
        bondrating: 'AA',
        duedate: '20240325',
        exercisedate: '20220325',
        residualday: '285',
        remainingday: '1016',
        weightcoefficient: '0.95%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4758,
        tradingcode: '162103',
        exchangecode: '101',
        secuabbr: '19瀚控02',
        type: '0',
        subtype: '私募债',
        currentamount: '500000.0',
        rate: null,
        netvaluation: '100.3237',
        totalvaluation: '103.8579',
        marketvalue: '52148739.6800',
        issuer: '江苏瀚瑞投资控股有限公司',
        counterparty: '--',
        subjectrating: 'AA+',
        bondrating: 'AAA',
        duedate: '20230927',
        exercisedate: '20210927',
        residualday: '106',
        remainingday: '836',
        weightcoefficient: '3.04%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4759,
        tradingcode: '031900012',
        exchangecode: '113',
        secuabbr: '19烟台港PPN001',
        type: '0',
        subtype: '定向工具',
        currentamount: '200000.0',
        rate: null,
        netvaluation: '101.1384',
        totalvaluation: '101.9488',
        marketvalue: '20207641.3200',
        issuer: '山东港口烟台港集团有限公司',
        counterparty: '--',
        subjectrating: 'AA+',
        bondrating: 'AA+',
        duedate: '20220415',
        exercisedate: null,
        residualday: '306',
        remainingday: '306',
        weightcoefficient: '1.18%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4760,
        tradingcode: '151701',
        exchangecode: '101',
        secuabbr: '19盛泽02',
        type: '0',
        subtype: '私募债',
        currentamount: '350000.0',
        rate: null,
        netvaluation: '99.7889',
        totalvaluation: '105.3499',
        marketvalue: '36973343.1400',
        issuer: '江苏盛泽投资有限公司',
        counterparty: '--',
        subjectrating: 'AA',
        bondrating: 'AA',
        duedate: '20220624',
        exercisedate: '20220624',
        residualday: '376',
        remainingday: '376',
        weightcoefficient: '2.15%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4761,
        tradingcode: '114578',
        exchangecode: '105',
        secuabbr: '19盛虹G1',
        type: '0',
        subtype: '私募债',
        currentamount: '700000.0',
        rate: null,
        netvaluation: '100.4546',
        totalvaluation: '104.6464',
        marketvalue: '72957260.2700',
        issuer: '江苏东方盛虹股份有限公司',
        counterparty: '--',
        subjectrating: 'AA+',
        bondrating: 'AA+',
        duedate: '20220930',
        exercisedate: null,
        residualday: '474',
        remainingday: '474',
        weightcoefficient: '4.25%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4762,
        tradingcode: '190305',
        exchangecode: '113',
        secuabbr: '19进出05',
        type: '0',
        subtype: '政策银行债',
        currentamount: '1000000.0',
        rate: null,
        netvaluation: '100.4817',
        totalvaluation: '101.5690',
        marketvalue: '101915401.5300',
        issuer: '中国进出口银行',
        counterparty: '--',
        subjectrating: 'AAA',
        bondrating: 'AAA',
        duedate: '20240211',
        exercisedate: null,
        residualday: '973',
        remainingday: '973',
        weightcoefficient: '5.94%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4763,
        tradingcode: '200202',
        exchangecode: '113',
        secuabbr: '20国开02',
        type: '0',
        subtype: '政策银行债',
        currentamount: '200000.0',
        rate: null,
        netvaluation: '98.1882',
        totalvaluation: '98.5143',
        marketvalue: '19666091.6400',
        issuer: '国家开发银行',
        counterparty: '--',
        subjectrating: 'AAA',
        bondrating: 'AAA',
        duedate: '20230409',
        exercisedate: null,
        residualday: '665',
        remainingday: '665',
        weightcoefficient: '1.15%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4764,
        tradingcode: '114747',
        exchangecode: '105',
        secuabbr: '20徐国盛',
        type: '0',
        subtype: '私募债',
        currentamount: '800000.0',
        rate: null,
        netvaluation: '99.0667',
        totalvaluation: '99.2541',
        marketvalue: '80166575.3400',
        issuer: '徐州市国盛控股集团有限公司',
        counterparty: '--',
        subjectrating: 'AA',
        bondrating: 'AAA',
        duedate: '20250525',
        exercisedate: '20230525',
        residualday: '711',
        remainingday: '1442',
        weightcoefficient: '4.67%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4765,
        tradingcode: '102000079',
        exchangecode: '113',
        secuabbr: '20新发集团MTN001A',
        type: '0',
        subtype: '一般中期票据',
        currentamount: '400000.0',
        rate: null,
        netvaluation: '100.4811',
        totalvaluation: '101.9691',
        marketvalue: '40889235.2700',
        issuer: '无锡市新发集团有限公司',
        counterparty: '--',
        subjectrating: 'AA+',
        bondrating: 'AA+',
        duedate: '20250117',
        exercisedate: '20230117',
        residualday: '583',
        remainingday: '1314',
        weightcoefficient: '2.38%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4766,
        tradingcode: '012101492',
        exchangecode: '113',
        secuabbr: '21南通高新SCP002',
        type: '0',
        subtype: '超短期融资债券',
        currentamount: '600000.0',
        rate: null,
        netvaluation: '100.0847',
        totalvaluation: '100.5766',
        marketvalue: '60305735.0500',
        issuer: '南通高新控股集团有限公司',
        counterparty: '--',
        subjectrating: 'AA+',
        bondrating: 'AA+',
        duedate: '20211207',
        exercisedate: null,
        residualday: '177',
        remainingday: '177',
        weightcoefficient: '3.51%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4767,
        tradingcode: '012101742',
        exchangecode: '113',
        secuabbr: '21昆山高新SCP003',
        type: '0',
        subtype: '超短期融资债券',
        currentamount: '300000.0',
        rate: null,
        netvaluation: '100.0409',
        totalvaluation: '100.4074',
        marketvalue: '30082931.5700',
        issuer: '昆山高新集团有限公司',
        counterparty: '--',
        subjectrating: 'AA+',
        bondrating: 'AA+',
        duedate: '20211125',
        exercisedate: null,
        residualday: '165',
        remainingday: '165',
        weightcoefficient: '1.75%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4768,
        tradingcode: '178409',
        exchangecode: '101',
        secuabbr: '21河西D1',
        type: '0',
        subtype: '私募债',
        currentamount: '300000.0',
        rate: null,
        netvaluation: '99.8749',
        totalvaluation: '100.3497',
        marketvalue: '30147821.9200',
        issuer: '南京市河西新城区国有资产经营控股(集团)有限责任公司',
        counterparty: '--',
        subjectrating: 'AAA',
        bondrating: 'AAA',
        duedate: '20220420',
        exercisedate: null,
        residualday: '311',
        remainingday: '311',
        weightcoefficient: '1.76%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4769,
        tradingcode: '151934',
        exchangecode: '101',
        secuabbr: 'PRG国太',
        type: '0',
        subtype: '私募债',
        currentamount: '40000.0',
        rate: null,
        netvaluation: '93.0714',
        totalvaluation: '96.8063',
        marketvalue: '3830361.7800',
        issuer: '苏州吴中国太发展有限公司',
        counterparty: '--',
        subjectrating: 'AA+',
        bondrating: 'AA+',
        duedate: '20240806',
        exercisedate: '20220806',
        residualday: '419',
        remainingday: '1150',
        weightcoefficient: '0.22%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4770,
        tradingcode: '145792',
        exchangecode: '101',
        secuabbr: 'PR东广01',
        type: '0',
        subtype: '私募债',
        currentamount: '500000.0',
        rate: null,
        netvaluation: '70.9875',
        totalvaluation: '73.9908',
        marketvalue: '37148390.1900',
        issuer: '成都东方广益投资有限公司',
        counterparty: '--',
        subjectrating: 'AA+',
        bondrating: 'AAA',
        duedate: '20220915',
        exercisedate: null,
        residualday: '459',
        remainingday: '459',
        weightcoefficient: '2.17%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4772,
        tradingcode: '现金',
        exchangecode: null,
        secuabbr: '现金',
        type: '现金',
        subtype: '现金',
        currentamount: '0.0',
        rate: null,
        netvaluation: '0.0000',
        totalvaluation: '0.0000',
        marketvalue: '95867901.6900',
        issuer: '--',
        counterparty: '--',
        subjectrating: null,
        bondrating: null,
        duedate: null,
        exercisedate: null,
        residualday: null,
        remainingday: null,
        weightcoefficient: '5.59%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 1855,
        tradingcode: 'R001',
        exchangecode: '113',
        secuabbr: 'R001',
        type: '4',
        subtype: null,
        currentamount: '500000.0000',
        rate: '2.08%',
        netvaluation: '100',
        totalvaluation: '100',
        marketvalue: '50000000.0000',
        issuer: null,
        counterparty: '--',
        subjectrating: null,
        bondrating: null,
        duedate: '20210615',
        exercisedate: null,
        residualday: '2',
        remainingday: '2',
        weightcoefficient: '2.91%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
      {
        id: 4771,
        tradingcode: 'R001',
        exchangecode: '113',
        secuabbr: 'R001',
        type: '3',
        subtype: null,
        currentamount: '2597000.0000',
        rate: '2.08%',
        netvaluation: '100',
        totalvaluation: '100',
        marketvalue: '-259700000.0000',
        issuer: '--',
        counterparty: '--',
        subjectrating: null,
        bondrating: null,
        duedate: '20210615',
        exercisedate: null,
        residualday: '2',
        remainingday: '2',
        weightcoefficient: '-15.14%',
        productcode: '1A0087',
        productname: '1A00871',
        importdate: '20210613',
        totalPrice: '1715715785.93',
      },
    ];

    return (
      <div style={{ padding: '20px' }}>
        <PrimaryC onClick={this.onClick} title='导出' style={{ marginBottom: '20px' }} />
        <div id='test'></div>
        <div id='drawingBoard' style={{ width: '1301px' }}>
          {/* 1、仅1页 */}
          <div name='pdf' style={{ marginBottom: '16px' }}>
            <FirstHeaderC title='1、仅1页' bottomHeight={false} />
          </div>
          <div name='pdf' style={{ marginBottom: '16px' }}>
            <SecondHeaderC name='pdf' title='现金' bottomHeight={false} />
          </div>
          <div name='pdf' style={{ marginBottom: '16px' }}>
            <SecondHeaderC name='pdf' title='期限在1年以内（含1年）的银行存款' bottomHeight={false} />
          </div>
          <div name='pdf' isTable='true' style={{ marginBottom: '16px' }}>
            <TableC columns={columns} dataSource={data5} hidePage={true} rowKey='id' />
          </div>
          <div name='pdf' style={{ marginBottom: '16px' }}>
            <SecondHeaderC name='pdf' title='剩余期限在397天以内（含397天）的债' bottomHeight={false} />
          </div>
          <div name='pdf' isTable='true' style={{ marginBottom: '16px' }}>
            <TableC columns={columns} dataSource={data10} hidePage={true} rowKey='id' />
          </div>

          {/* 2、换页，但不是表格 */}
          {/* <div name='pdf' style={{marginBottom:'16px'}}>
                    <FirstHeaderC title='2、换页，但不是表格' bottomHeight={false}/>
                </div>
                <div name='pdf'style={{marginBottom:'16px'}}>
                    <SecondHeaderC name='pdf' title='现金' bottomHeight={false}/>
                </div>
                <div name='pdf'style={{marginBottom:'16px'}}>
                    <SecondHeaderC name='pdf' title='期限在1年以内（含1年）的银行存款' bottomHeight={false}/>
                </div>
                <div name='pdf' isTable='true' style={{marginBottom:'16px'}}>
                    <TableC
                        columns={columns}
                        dataSource={data5}
                        hidePage={true}
                        rowKey='id'
                    />
                </div>
                <div name='pdf'style={{marginBottom:'16px'}}>
                    <SecondHeaderC name='pdf' title='剩余期限在397天以内（含397天）的债' bottomHeight={false}/>
                </div>
                <div name='pdf' isTable='true' style={{marginBottom:'16px'}}>
                    <TableC
                        columns={columns}
                        dataSource={data10}
                        hidePage={true}
                        rowKey='id'
                    />
                </div>
                <div name='pdf' style={{marginBottom:'16px'}}>
                    <FirstHeaderC title='投资集中度控制' bottomHeight={false}/>
                </div>
                <div name='pdf'style={{marginBottom:'16px'}}>
                    <SecondHeaderC name='pdf' title='每只现金管理类产品的杠杆水平不得超过12' bottomHeight={false}/>
                </div>
                <div name='pdf'style={{marginBottom:'16px'}}>
                    <SecondHeaderC name='pdf' title='每只现金管理类产品投资于所有主体信用评级低于AAA的机构发行的金融工具的比例合计不得超过该产品资产净值的10%，其中单一机构发行的金融工具的比例合计不得超过该产品资产净值的2%；本款所称金融 工具包括债券、银行存款、同业存单、相关机构作为原始权益人的资产支持证券及银保监会认可的其他金融工具。' bottomHeight={false}/>
                </div> */}

          {/* 3、换页，且表头正好在最下面，但空间不够，此时应该不分页 */}
          {/* <div name='pdf' style={{marginBottom:'16px'}}>
                    <FirstHeaderC title='3、换页，且表头正好在最下面，但空间不够，此时应该不分页' bottomHeight={false}/>
                </div>
                <div name='pdf'style={{marginBottom:'16px'}}>
                    <SecondHeaderC name='pdf' title='现金' bottomHeight={false}/>
                </div>
                <div name='pdf'style={{marginBottom:'16px'}}>
                    <SecondHeaderC name='pdf' title='期限在1年以内（含1年）的银行存款' bottomHeight={false}/>
                </div>
                <div name='pdf' isTable='true' style={{marginBottom:'16px'}}>
                    <TableC
                        columns={columns}
                        dataSource={data5}
                        hidePage={true}
                        rowKey='id'
                    />
                </div>
                <div name='pdf'style={{marginBottom:'16px'}}>
                    <SecondHeaderC name='pdf' title='剩余期限在397天以内（含397天）的债' bottomHeight={false}/>
                </div>
                <div name='pdf' isTable='true' style={{marginBottom:'16px'}}>
                    <TableC
                        columns={columns}
                        dataSource={data10}
                        hidePage={true}
                        rowKey='id'
                    />
                </div>
                <div name='pdf'style={{marginBottom:'16px'}}>
                    <SecondHeaderC name='pdf' title='每只现金管理类产品的杠杆水平不得超过12' bottomHeight={false}/>
                </div>
                <div name='pdf' isTable='true' style={{marginBottom:'16px'}}>
                    <TableC
                        columns={columns}
                        dataSource={data10}
                        hidePage={true}
                        rowKey='id'
                    />
                </div> */}

          {/* 4、分页后面无元素 */}
          {/* <div name='pdf' style={{marginBottom:'16px'}}>
                    <FirstHeaderC title='4、分页后面无元素' bottomHeight={false}/>
                </div>
                <div name='pdf'style={{marginBottom:'16px'}}>
                    <SecondHeaderC name='pdf' title='现金' bottomHeight={false}/>
                </div>
                <div name='pdf'style={{marginBottom:'16px'}}>
                    <SecondHeaderC name='pdf' title='期限在1年以内（含1年）的银行存款' bottomHeight={false}/>
                </div>
                <div name='pdf' isTable='true' style={{marginBottom:'16px'}}>
                    <TableC
                        columns={columns}
                        dataSource={data5}
                        hidePage={true}
                        rowKey='id'
                    />
                </div>
                <div name='pdf' style={{marginBottom:'16px'}}>
                    <FirstHeaderC title='投资集中度控制' bottomHeight={false}/>
                </div>
                <div name='pdf'style={{marginBottom:'16px'}}>
                    <SecondHeaderC name='pdf' title='每只现金管理类产品投资于所有主体信用评级低于AAA的机构发行的金融工具的比例合计不得超过该产品资产净值的10%，其中单一机构发行的金融工具的比例合计不得超过该产品资产净值的2%；本款所称金融 工具包括债券、银行存款、同业存单、相关机构作为原始权益人的资产支持证券及银保监会认可的其他金融工具。' bottomHeight={false}/>
                </div>
                <div name='pdf' isTable='true' style={{marginBottom:'16px'}}>
                    <TableC
                        columns={columns}
                        dataSource={data33}
                        hidePage={true}
                        rowKey='id'
                    />
                </div> */}

          {/* 5、分页后面还有元素 */}
          {/* <div name='pdf' style={{ marginBottom: '16px' }}>
                    <FirstHeaderC title='5、分页后面还有元素' bottomHeight={false} />
                </div>
                <div name='pdf' style={{ marginBottom: '16px' }}>
                    <SecondHeaderC name='pdf' title='现金' bottomHeight={false} />
                </div>
                <div name='pdf' style={{ marginBottom: '16px' }}>
                    <SecondHeaderC name='pdf' title='期限在1年以内（含1年）的银行存款' bottomHeight={false} />
                </div>
                <div name='pdf' isTable='true' style={{ marginBottom: '16px' }}>
                    <TableC
                        columns={columns}
                        dataSource={data5}
                        hidePage={true}
                        rowKey='id'
                    />
                </div>
                <div name='pdf' style={{ marginBottom: '16px' }}>
                    <FirstHeaderC title='投资集中度控制' bottomHeight={false} />
                </div>
                <div name='pdf' style={{ marginBottom: '16px' }}>
                    <SecondHeaderC name='pdf' title='每只现金管理类产品投资于所有主体信用评级低于AAA的机构发行的金融工具的比例合计不得超过该产品资产净值的10%，其中单一机构发行的金融工具的比例合计不得超过该产品资产净值的2%；本款所称金融 工具包括债券、银行存款、同业存单、相关机构作为原始权益人的资产支持证券及银保监会认可的其他金融工具。' bottomHeight={false} />
                </div>
                <div name='pdf' isTable='true' style={{ marginBottom: '16px' }}>
                    <TableC
                        columns={columns}
                        dataSource={data33}
                        hidePage={true}
                        rowKey='id'
                    />
                </div>
                <div name='pdf' style={{ marginBottom: '16px' }}>
                    <SecondHeaderC name='pdf' title='每只现金管理类产品的杠杆水平不得超过12' bottomHeight={false} />
                </div>
                <div name='pdf' isTable='true' style={{ marginBottom: '16px' }}>
                    <TableC
                        columns={columns}
                        dataSource={data10}
                        hidePage={true}
                        rowKey='id'
                    />
                </div> */}

          {/* 6、上一次分页的最后一页当中还包含要分页的表格 */}
          {/* <div name='pdf' style={{marginBottom:'16px'}}>
                    <FirstHeaderC title='6、上一次分页的最后一页当中还包含要分页的表格' bottomHeight={false}/>
                </div>
                <div name='pdf'style={{marginBottom:'16px'}}>
                    <SecondHeaderC name='pdf' title='每只现金管理类产品投资于所有主体信用评级低于AAA的机构发行的金融工具的比例合计不得超过该产品资产净值的10%，其中单一机构发行的金融工具的比例合计不得超过该产品资产净值的2%；本款所称金融 工具包括债券、银行存款、同业存单、相关机构作为原始权益人的资产支持证券及银保监会认可的其他金融工具。' bottomHeight={false}/>
                </div>
                <div name='pdf' isTable='true' style={{marginBottom:'16px'}}>
                    <TableC
                        columns={columns}
                        dataSource={data33}
                        hidePage={true}
                        rowKey='id'
                    />
                </div>
                <div name='pdf'style={{marginBottom:'16px'}}>
                    <SecondHeaderC name='pdf' title='每只现金管理类产品的杠杆水平不得超过12' bottomHeight={false}/>
                </div>
                <div name='pdf' isTable='true' style={{marginBottom:'16px'}}>
                    <TableC
                        columns={columns1}
                        dataSource={data10}
                        hidePage={true}
                        rowKey='id'
                    />
                </div> */}

          {/* 表头和body换行，已明细列表为例 */}
          {/* <div name='pdf' style={{ marginBottom: '16px' }}>
                    <FirstHeaderC title='表头和body换行' bottomHeight={false} />
                </div>
                <div name='pdf' style={{ marginBottom: '16px' }}>
                    <SecondHeaderC name='pdf' title='每只现金管理类产品投资于所有主体信用评级低于AAA的机构发行的金融工具的比例合计不得超过该产品资产净值的10%，其中单一机构发行的金融工具的比例合计不得超过该产品资产净值的2%；本款所称金融 工具包括债券、银行存款、同业存单、相关机构作为原始权益人的资产支持证券及银保监会认可的其他金融工具。' bottomHeight={false} />
                </div>
                <div name='pdf' isTable='true' style={{ marginBottom: '16px' }}>
                    <TableC
                        columns={columns}
                        dataSource={data15}
                        hidePage={true}
                        rowKey='id'
                    />
                </div>
                <div name='pdf' style={{ marginBottom: '16px' }}>
                    <SecondHeaderC name='pdf' title='每只现金管理类产品的杠杆水平不得超过12' bottomHeight={false} />
                </div>
                <div name='pdf' isTable='true' style={{ marginBottom: '16px' }}>
                    <TableC
                        columns={column1}
                        dataSource={data1.map((x,index)=>{return {...x,index:index}})}
                        hidePage={true}
                        rowKey='id'
                    />
                </div> */}

          {/* 合并单元格 */}
          {/* <div name='pdf' style={{ marginBottom: '16px' }}>
                    <FirstHeaderC title='合并单元格' bottomHeight={false} />
                </div>
                <div name='pdf' isTable='true' style={{ marginBottom: '16px' }}>
                    <TableC
                        columns={columns.map(x => {
                            if (x.key == 'issuer') {
                                return {
                                    ...x,
                                    render: (value, row, index) => {

                                        const n = 3
                                        const obj = {
                                            children: value,
                                            props: {},
                                        };
                                        if (index % n == 0) {
                                            obj.props.rowSpan = n;
                                        } else {
                                            obj.props.rowSpan = 0;
                                        }
                                        return obj;
                                    },

                                }
                            }
                            return x
                        })}
                        dataSource={data33}
                        hidePage={true}
                        rowKey='id'
                    />
                </div> */}
        </div>
      </div>
    );
  }
}

export default PdfImport;
